/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.cervejaria.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 
 * @author admin
 */
public class GeradorDeData {

	public static String GerarDataHora() {
		String data;
		String hora;
		Date date = new Date();
		SimpleDateFormat formatarDate = new SimpleDateFormat("dd/MM/yyyy");
		data = formatarDate.format(date).toString();
		SimpleDateFormat formatarhora = new SimpleDateFormat("HH:mm:ss");
		hora = formatarhora.format(date).toString();
		return data + " - " + hora;

	}
}
